package com.yixun.qfbao.model.enums;

/**
 * Created by Administrator on 2017/11/13.
 */
public enum  CreateOriginEnum {
	
    WEAPP_REGESIT("0","分销小程序注册"),
    OTHER("1","其他");
	 
    private String code;
    private String name;

    CreateOriginEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }
    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static CreateOriginEnum getByCode(String code) {
        for (CreateOriginEnum item : CreateOriginEnum.values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return null;
    }
}
